#include <stm32f10x.h> // Device header
#include "led.hpp"
#include "exti.hpp"
#include "beep.hpp"
#include "exti_handler.h"
int main()
{
    //使能时钟
    RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO | RCC_APB2Periph_GPIOB | RCC_APB2Periph_GPIOA, ENABLE);
    // jtag??
    GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE);
    led_mode_t led_mode;
    SysTick_CLKSourceConfig()
        led_mode.led_clear();
    led_mode.led_set(0x3f);
    led_mode.led_init();
    GPIO_InitTypeDef GPIO_Info;
    beep_setup::beep_init();
    GPIO_WriteBit(GPIOA, GPIO_Pin_1, Bit_SET);
    GPIO_Write(GPIOB, 0x77ff);
    GPIO_WriteBit(GPIOB, GPIO_Pin_7, Bit_RESET);
    led_mode_t::set_LED_gpio();
    EXTI_settings::set_exti();
    while (1)
    {
    }
}
